package com.example.one;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * pojo 要求必须有 无参构造器
 * 项目的对象必须是基本最底层是 基础项目类型
 * @author coxx_
 * @date 2020/10/30 10:54
 */
public class Order implements Serializable {

    public Order(){}

    public Order(String name, Double amount, Integer nums){
        this.name = name;
        this.nums = nums;
        this.amount = amount;
    }
    private Integer nums;
    private String name;
    private Double amount;

    public Integer getNums() {
        return nums;
    }

    public void setNums(Integer nums) {
        this.nums = nums;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Double getAmount() {
        return amount;
    }

    public void setAmount(Double amount) {
        this.amount = amount;
    }

    @Override
    public String toString() {
        return "Order{" +
                "nums=" + nums +
                ", name='" + name + '\'' +
                ", amount=" + amount +
                '}';
    }
}
